package D12_9z.xml练习题.xml解析_4;

public class Phone {
    private String name;
    private String brand;
    private double size;
    private int price;
    private String color;

    @Override
    public String toString() {
        return this.name+","+this.brand+","+this.size+","+this.price+","+this.color;
    }

    public Phone(String name, String brand, double size, int price, String color) {
        this.name = name;
        this.brand = brand;
        this.size = size;
        this.price = price;
        this.color = color;
    }

    public Phone() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
